import request from '@/api/basic/http'

//全部分类
export function allClass() {
  return request({
    url: '/blog/class',
    method: 'get',
  })
}
//tag
export function allTag() {
  return request({
    url: '/blog/tag',
    method: 'get',
  })
}
//新增文章
export function artAdd(data) {
  return request({
    url: '/blog/art/add',
    method: 'post',
    data
  })
}
//查询文章
export function getArts(data) {
  return request({
    url: '/blog/art',
    method: 'post',
    data
  })
}